package com.ty.dao;

import com.ty.entity.Category;
import com.ty.entity.CategoryQuery;
import org.apache.ibatis.annotations.Mapper;
import cn.smart.core.annotation.PageX;

import java.util.List;

@Mapper
public interface CategoryDao{
    @PageX
    List<Category> select(CategoryQuery query);
    Integer insert(Category category);
    Integer insertBatch(List<Category> categorys);
    Integer update(Category category);
    Integer delete(Integer id);
}